home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
-
- <?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
- <?xml-stylesheet href="chrome://browser/content/places/places.css" type="text/css"?>
-
- <?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
-
- <?xml-stylesheet href="chrome://global/skin/toolbar.css" type="text/css"?>
-
- <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
- <?xul-overlay href="chrome://browser/content/baseMenuOverlay.xul"?>
- <?xul-overlay href="chrome://browser/content/places/placesOverlay.xul"?>
-
- <!DOCTYPE window [
- <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
- %brandDTD;
- <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
- %browserDTD;
- <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
- %globalDTD;
- <!ENTITY % globalRegionDTD SYSTEM "chrome://global-region/locale/region.dtd">
- %globalRegionDTD;
- <!ENTITY % charsetDTD SYSTEM "chrome://global/locale/charsetOverlay.dtd" >
- %charsetDTD;
- <!ENTITY % textcontextDTD SYSTEM "chrome://global/locale/textcontext.dtd" >
- %textcontextDTD;
- <!ENTITY % placesDTD SYSTEM "chrome://browser/locale/places/places.dtd">
- %placesDTD;
- <!ENTITY % safebrowsingDTD SYSTEM "chrome://browser/locale/safebrowsing/phishing-afterload-warning-message.dtd">
- %safebrowsingDTD;
- ]>
-
-
- <window id="main-window"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- onload="BrowserStartup()" onunload="BrowserShutdown()" onclose="return WindowIsClosing();"
- contenttitlesetting="true"
- title="&mainWindow.title;"
- titlemodifier="&mainWindow.title;"
- titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
- windowtype="navigator:browser"
- screenX="4" screenY="4"
- persist="screenX screenY width height sizemode">
-
-
- <script type="application/x-javascript" src="chrome://global/content/printUtils.js"/>
- <script type="application/x-javascript" src="chrome://global/content/viewZoomOverlay.js"/>
- <script type="application/x-javascript" src="chrome://browser/content/browser.js"/>
- <script type="application/x-javascript" src="chrome://global/content/inlineSpellCheckUI.js"/>
- <script type="application/x-javascript" src="chrome://global/content/viewSourceUtils.js"/>
- <script type="application/x-javascript" src="chrome://browser/content/nsContextMenu.js"/>
-
- <script type="application/x-javascript" src="chrome://browser/content/safebrowsing/sb-loader.js"/>
- <script type="application/x-javascript" src="chrome://global/content/contentAreaUtils.js"/>
-
- <script type="application/javascript" src="chrome://browser/content/places/editBookmarkOverlay.js"/>
-
-
-
- <stringbundleset id="stringbundleset">
- <stringbundle id="bundle_brand" src="chrome://branding/locale/brand.properties"/>
- <stringbundle id="bundle_shell" src="chrome://browser/locale/shellservice.properties"/>
- <stringbundle id="bundle_preferences" src="chrome://browser/locale/preferences/preferences.properties"/>
- </stringbundleset>
-
- <commandset id="mainCommandSet">
- <command id="cmd_newNavigator" oncommand="OpenBrowserWindow()"/>
- <command id="cmd_handleBackspace" oncommand="BrowserHandleBackspace();" />
- <command id="cmd_handleShiftBackspace" oncommand="BrowserHandleShiftBackspace();" />
-
- <command id="cmd_newNavigatorTab" oncommand="BrowserOpenTab();"/>
- <command id="Browser:OpenFile" oncommand="BrowserOpenFileWindow();"/>
- <command id="Browser:SavePage" oncommand="saveDocument(window.content.document);"/>
- <command id="Browser:SaveFrame" oncommand="saveFrameDocument();"/>
-
- <command id="Browser:SendLink"
- oncommand="MailIntegration.sendLinkForWindow(window.content);"/>
-
- <command id="cmd_pageSetup" oncommand="PrintUtils.showPageSetup();"/>
- <command id="cmd_print" oncommand="PrintUtils.print();"/>
- <command id="cmd_printPreview" oncommand="PrintUtils.printPreview(onEnterPrintPreview, onExitPrintPreview);"/>
- <command id="cmd_close" oncommand="BrowserCloseTabOrWindow()"/>
- <command id="cmd_closeWindow" oncommand="BrowserTryToCloseWindow()"/>
- <command id="cmd_toggleTaskbar" oncommand="goToggleToolbar('status-bar','toggle_taskbar');"/>
- <command id="cmd_CustomizeToolbars" oncommand="BrowserCustomizeToolbar()"/>
- <command id="cmd_quitApplication" oncommand="goQuitApplication()"/>
-
-
- <commandset id="editMenuCommands"/>
-
- <command id="View:PageSource" oncommand="BrowserViewSourceOfDocument(content.document);" observes="isImage"/>
- <command id="View:PageInfo" oncommand="BrowserPageInfo();"/>
- <command id="View:FullScreen" oncommand="BrowserFullScreen();"/>
- <command id="cmd_find"
- oncommand="gFindBar.onFindCommand();"
- observes="isImage"/>
- <command id="cmd_findAgain"
- oncommand="gFindBar.onFindAgainCommand(false);"
- observes="isImage"/>
- <command id="cmd_findPrevious"
- oncommand="gFindBar.onFindAgainCommand(true);"
- observes="isImage"/>
- <!-- work-around bug 392512 -->
- <command id="Browser:AddBookmarkAs"
- oncommand="PlacesCommandHook.bookmarkCurrentPage(true, PlacesUtils.bookmarksMenuFolderId);"/>
- <!-- The command is disabled for the hidden window. Otherwise its enabled
- state is handled by the BookmarkAllTabsHandler object. -->
- <command id="Browser:BookmarkAllTabs"
- oncommand="gBookmarkAllTabsHandler.doCommand();"
- disabled="true"/>
- <command id="Browser:Home" oncommand="BrowserHome();"/>
- <command id="Browser:Back" oncommand="BrowserBack();" disabled="true"/>
- <command id="Browser:Forward" oncommand="BrowserForward();" disabled="true"/>
- <command id="Browser:Stop" oncommand="BrowserStop();" disabled="true"/>
- <command id="Browser:Reload" oncommand="if (event.shiftKey) BrowserReloadSkipCache(); else BrowserReload()" disabled="true"/>
- <command id="Browser:ReloadSkipCache" oncommand="BrowserReloadSkipCache()" disabled="true"/>
- <command id="cmd_fullZoomReduce" oncommand="FullZoom.reduce()"/>
- <command id="cmd_fullZoomEnlarge" oncommand="FullZoom.enlarge()"/>
- <command id="cmd_fullZoomReset" oncommand="FullZoom.reset()"/>
- <command id="cmd_fullZoomToggle" oncommand="ZoomManager.toggleZoom();"/>
- <command id="Browser:OpenLocation" oncommand="openLocation();"/>
-
- <command id="Tools:Search" oncommand="BrowserSearch.webSearch();"/>
- <command id="Tools:Downloads" oncommand="BrowserDownloadsUI();"/>
- <command id="Tools:Addons" oncommand="BrowserOpenAddonsMgr();"/>
- <command id="Tools:Sanitize"
- oncommand="Cc[GLUE_CID].getService(Ci.nsIBrowserGlue).sanitize(window || null);"/>
- <command id="History:UndoCloseTab" oncommand="undoCloseTab();"/>
- </commandset>
-
- <commandset id="placesCommands">
- <command id="Browser:ShowAllBookmarks"
- oncommand="PlacesCommandHook.showPlacesOrganizer('AllBookmarks');"/>
- <command id="Browser:ShowAllHistory"
- oncommand="PlacesCommandHook.showPlacesOrganizer('History');"/>
- </commandset>
-
- <broadcasterset id="mainBroadcasterSet">
- <broadcaster id="viewBookmarksSidebar" autoCheck="false" label="&bookmarksButton.label;"
- type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/bookmarks/bookmarksPanel.xul"
- oncommand="toggleSidebar('viewBookmarksSidebar');"/>
-
- <!-- for both places and non-places, the sidebar lives at
- chrome://browser/content/history/history-panel.xul so there are no
- problems when switching between versions -->
- <broadcaster id="viewHistorySidebar" autoCheck="false" sidebartitle="&historyButton.label;"
- type="checkbox" group="sidebar"
- sidebarurl="chrome://browser/content/history/history-panel.xul"
- oncommand="toggleSidebar('viewHistorySidebar');"/>
-
- <broadcaster id="viewWebPanelsSidebar" autoCheck="false"
- type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/web-panels.xul"
- oncommand="toggleSidebar('viewWebPanelsSidebar');"/>
-
- <!-- popup blocking menu items -->
- <broadcaster id="blockedPopupAllowSite"
- accesskey="&allowPopups.accesskey;"
- oncommand="gPopupBlockerObserver.toggleAllowPopupsForSite(event);"/>
- <broadcaster id="blockedPopupEditSettings"
- label="&editPopupSettings.label;"
- accesskey="&editPopupSettings.accesskey;"
- oncommand="gPopupBlockerObserver.editPopupSettings();"/>
- <broadcaster id="blockedPopupDontShowMessage"
- accesskey="&dontShowMessage.accesskey;"
- type="checkbox"
- oncommand="gPopupBlockerObserver.dontShowMessage();"/>
- <broadcaster id="blockedPopupsSeparator"/>
- <broadcaster id="isImage"/>
- <broadcaster id="isFrameImage"/>
- </broadcasterset>
-
- <keyset id="mainKeyset">
- <key id="key_newNavigator"
- key="&newNavigatorCmd.key;"
- command="cmd_newNavigator"
- modifiers="accel"/>
- <key id="key_newNavigatorTab" key="&tabCmd.commandkey;" modifiers="accel" command="cmd_newNavigatorTab"/>
- <key id="focusURLBar" key="&openCmd.commandkey;" command="Browser:OpenLocation"
- modifiers="accel"/>
- <key id="focusURLBar2" key="&urlbar.accesskey;" command="Browser:OpenLocation"
- modifiers="alt"/>
-
- <key id="key_search" key="&searchFocus.commandkey;" command="Tools:Search" modifiers="accel"/>
- <key id="key_search2" key="&searchFocus.commandkey2;" command="Tools:Search" modifiers="accel"/>
- <key id="key_openDownloads" key="&downloads.commandkey;" command="Tools:Downloads" modifiers="accel"/>
- <key id="key_errorConsole" key="&errorConsoleCmd.commandkey;" oncommand="toJavaScriptConsole();" modifiers="accel,shift"/>
- <key id="openFileKb" key="&openFileCmd.commandkey;" command="Browser:OpenFile" modifiers="accel"/>
- <key id="key_savePage" key="&savePageCmd.commandkey;" command="Browser:SavePage" modifiers="accel"/>
- <key id="printKb" key="&printCmd.commandkey;" command="cmd_print" modifiers="accel"/>
- <key id="key_close" key="&closeCmd.key;" command="cmd_close" modifiers="accel"/>
- <key id="key_closeWindow" key="&closeCmd.key;" command="cmd_closeWindow" modifiers="accel,shift"/>
- <key id="key_undo"
- key="&undoCmd.key;"
- modifiers="accel"/>
- <key id="key_redo" key="&redoCmd.key;" modifiers="accel"/>
- <key id="key_cut"
- key="&cutCmd.key;"
- modifiers="accel"/>
- <key id="key_copy"
- key="©Cmd.key;"
- modifiers="accel"/>
- <key id="key_paste"
- key="&pasteCmd.key;"
- modifiers="accel"/>
- <key id="key_delete" keycode="VK_DELETE" command="cmd_delete"/>
- <key id="key_selectAll" key="&selectAllCmd.key;" modifiers="accel"/>
-
- <key keycode="VK_BACK" command="cmd_handleBackspace"/>
- <key keycode="VK_BACK" command="cmd_handleShiftBackspace" modifiers="shift"/>
- <key id="goBackKb" keycode="VK_LEFT" command="Browser:Back" modifiers="alt"/>
- <key id="goForwardKb" keycode="VK_RIGHT" command="Browser:Forward" modifiers="alt"/>
- <key id="goHome" keycode="VK_HOME" command="Browser:Home" modifiers="alt"/>
- <key keycode="VK_F5" command="Browser:Reload"/>
- <key id="showAllHistoryKb" key="&showAllHistoryCmd.commandkey;" command="Browser:ShowAllHistory" modifiers="accel,shift"/>
- <key keycode="VK_F5" command="Browser:ReloadSkipCache" modifiers="accel"/>
- <key id="key_fullScreen" keycode="VK_F11" command="View:FullScreen"/>
- <key key="&reloadCmd.commandkey;" command="Browser:Reload" modifiers="accel" id="key_reload"/>
- <key key="&reloadCmd.commandkey;" command="Browser:ReloadSkipCache" modifiers="accel,shift"/>
- <key id="key_viewSource" key="&pageSourceCmd.commandkey;" command="View:PageSource" modifiers="accel"/>
- <key id="key_find" key="&findOnCmd.commandkey;" command="cmd_find" modifiers="accel"/>
- <key id="key_findAgain" key="&findAgainCmd.commandkey;" command="cmd_findAgain" modifiers="accel"/>
- <key id="key_findPrevious" key="&findAgainCmd.commandkey;" command="cmd_findPrevious" modifiers="accel,shift"/>
- <key keycode="&findAgainCmd.commandkey2;" command="cmd_findAgain"/>
- <key keycode="&findAgainCmd.commandkey2;" command="cmd_findPrevious" modifiers="shift"/>
-
- <key id="addBookmarkAsKb" key="&bookmarkThisPageCmd.commandkey;" command="Browser:AddBookmarkAs" modifiers="accel"/>
- <key id="bookmarkAllTabsKb" key="&bookmarkThisPageCmd.commandkey;" command="Browser:BookmarkAllTabs" modifiers="accel,shift"/>
- <key id="manBookmarkKb" key="&bookmarksSidebarCmd.commandkey;" command="Browser:ShowAllBookmarks" modifiers="accel,shift"/>
- <key id="viewBookmarksSidebarKb" key="&bookmarksSidebarCmd.commandkey;" command="viewBookmarksSidebar" modifiers="accel"/>
- <key id="viewBookmarksSidebarWinKb" key="&bookmarksSidebarWinCmd.commandkey;" command="viewBookmarksSidebar" modifiers="accel"/>
-
- <key id="key_stop" keycode="VK_ESCAPE" oncommand="BrowserStop();"/>
-
-
- <key id="key_gotoHistory"
- key="&historySidebarCmd.commandKey;"
- modifiers="accel"
- command="viewHistorySidebar"/>
-
- <key id="key_fullZoomReduce" key="&fullZoomReduceCmd.commandkey;" command="cmd_fullZoomReduce" modifiers="accel"/>
- <key key="&fullZoomReduceCmd.commandkey2;" command="cmd_fullZoomReduce" modifiers="accel"/>
- <key id="key_fullZoomEnlarge" key="&fullZoomEnlargeCmd.commandkey;" command="cmd_fullZoomEnlarge" modifiers="accel"/>
- <key key="&fullZoomEnlargeCmd.commandkey2;" command="cmd_fullZoomEnlarge" modifiers="accel"/>
- <key key="&fullZoomEnlargeCmd.commandkey3;" command="cmd_fullZoomEnlarge" modifiers="accel"/>
- <key id="key_fullZoomReset" key="&fullZoomResetCmd.commandkey;" command="cmd_fullZoomReset" modifiers="accel"/>
- <key key="&fullZoomResetCmd.commandkey2;" command="cmd_fullZoomReset" modifiers="accel"/>
-
- <key id="key_switchTextDirection" key="&bidiSwitchTextDirectionItem.commandkey;" command="cmd_switchTextDirection" modifiers="accel,shift" />
-
- <key id="key_sanitize" command="Tools:Sanitize" keycode="VK_DELETE" modifiers="accel,shift"/>
-
- <key id="key_undoCloseTab" command="History:UndoCloseTab" key="&tabCmd.commandkey;" modifiers="accel,shift"/>
-
-
- <key id="key_selectTab1" oncommand="BrowserNumberTabSelection(event, 0);" key="1" modifiers="accel"/>
- <key id="key_selectTab2" oncommand="BrowserNumberTabSelection(event, 1);" key="2" modifiers="accel"/>
- <key id="key_selectTab3" oncommand="BrowserNumberTabSelection(event, 2);" key="3" modifiers="accel"/>
- <key id="key_selectTab4" oncommand="BrowserNumberTabSelection(event, 3);" key="4" modifiers="accel"/>
- <key id="key_selectTab5" oncommand="BrowserNumberTabSelection(event, 4);" key="5" modifiers="accel"/>
- <key id="key_selectTab6" oncommand="BrowserNumberTabSelection(event, 5);" key="6" modifiers="accel"/>
- <key id="key_selectTab7" oncommand="BrowserNumberTabSelection(event, 6);" key="7" modifiers="accel"/>
- <key id="key_selectTab8" oncommand="BrowserNumberTabSelection(event, 7);" key="8" modifiers="accel"/>
- <key id="key_selectTab9" oncommand="BrowserNumberTabSelection(event, 8);" key="9" modifiers="accel"/>
-
- </keyset>
-
- <keyset id="baseMenuKeyset" />
-
- <popupset id="mainPopupSet">
- <menupopup id="backForwardMenu"
- chromedir="&locale.dir;"
- onpopupshowing="return FillHistoryMenu(event.target);"
- oncommand="gotoHistoryIndex(event);"
- onclick="checkForMiddleClick(this, event);"/>
- <tooltip id="aHTMLTooltip" onpopupshowing="return FillInHTMLTooltip(document.tooltipNode);"/>
-
- <!-- for search and content formfill/pw manager -->
- <panel type="autocomplete" chromedir="&locale.dir;" id="PopupAutoComplete" noautofocus="true" hidden="true"/>
-
- <!-- for url bar autocomplete -->
- <panel type="autocomplete-richlistbox" chromedir="&locale.dir;" id="PopupAutoCompleteRichResult" noautofocus="true" hidden="true"/>
-
- <!-- XXX panel element that has one or more text fields should not be
- top-most panel, for IME users. See bug 433340 comment 100.
- However, we should not use non-topmost panel on Linux. Because
- some Window Managers always append title bar and border to the
- panel. -->
-
- <panel id="editBookmarkPanel"
- orient="vertical"
- ignorekeys="true"
- hidden="true"
- noautohide="true"
- onpopupshowing="this.removeAttribute('noautohide');"
- onpopupshown="StarUI.panelShown(event);"
- aria-labelledby="editBookmarkPanelTitle">
- <hbox flex="1" align="top">
- <image id="editBookmarkPanelStarIcon"/>
- <vbox flex="1">
- <label id="editBookmarkPanelTitle" flex="1"/>
- <description id="editBookmarkPanelDescription" flex="1"/>
- <hbox>
- <button id="editBookmarkPanelUndoRemoveButton"
- hidden="true"
- oncommand="StarUI.undoRemoveBookmarkCommand();"
- label="&editBookmark.undo.label;"
- accesskey="&editBookmark.undo.accessKey;"/>
- <button id="editBookmarkPanelRemoveButton"
- oncommand="StarUI.removeBookmarkButtonCommand();"
- label="&editBookmark.removeBookmark.label;"
- accesskey="&editBookmark.removeBookmark.accessKey;"/>
- <button id="editBookmarkPanelEditButton"
- oncommand="StarUI.editButtonCommand();"
- label="&editBookmark.edit.label;"
- accesskey="&editBookmark.edit.accessKey;"/>
- </hbox>
- </vbox>
- </hbox>
- <vbox id="editBookmarkPanelContent" flex="1" hidden="true"/>
- <hbox flex="1" id="editBookmarkPanelBottomButtons">
- <spacer flex="1"/>
- <button id="editBookmarkPanelDoneButton"
- label="&editBookmark.done.label;"
- default="true"
- oncommand="StarUI.panel.hidePopup();"/>
- <button id="editBookmarkPanelDeleteButton"
- label="&editBookmark.cancel.label;"
- oncommand="StarUI.cancelButtonOnCommand();"/>
- </hbox>
- </panel>
-
- <popup id="toolbar-context-menu"
- onpopupshowing="onViewToolbarsPopupShowing(event);">
- <menuseparator/>
- <menuitem command="cmd_CustomizeToolbars"
- label="&viewCustomizeToolbar.label;"
- accesskey="&viewCustomizeToolbar.accesskey;"/>
- </popup>
-
- <popup id="blockedPopupOptions"
- onpopupshowing="gPopupBlockerObserver.fillPopupList(event);">
- <menuitem observes="blockedPopupAllowSite"/>
- <menuitem observes="blockedPopupEditSettings"/>
- <menuitem observes="blockedPopupDontShowMessage"/>
- <menuseparator observes="blockedPopupsSeparator"/>
- </popup>
-
- <menupopup id="autohide-context"
- onpopupshowing="FullScreen.getAutohide(this.firstChild);">
- <menuitem type="checkbox" label="&fullScreenAutohide.label;"
- accesskey="&fullScreenAutohide.accesskey;"
- oncommand="FullScreen.setAutohide();"/>
- <menuseparator/>
- <menuitem label="&fullScreenExit.label;"
- accesskey="&fullScreenExit.accesskey;"
- oncommand="BrowserFullScreen();"/>
- </menupopup>
-
- <popup id="contentAreaContextMenu"
- onpopupshowing="if (event.target != this) return true; updateEditUIVisibility(); gContextMenu = new nsContextMenu(this, window.getBrowser()); return gContextMenu.shouldDisplay;"
- onpopuphiding="if (event.target == this) { gContextMenu = null; updateEditUIVisibility(); }">
-
- <menuitem id="spell-no-suggestions"
- disabled="true"
- label="&spellNoSuggestions.label;"/>
- <menuitem id="spell-add-to-dictionary"
- label="&spellAddToDictionary.label;"
- accesskey="&spellAddToDictionary.accesskey;"
- oncommand="InlineSpellCheckerUI.addToDictionary();"/>
- <menuseparator id="spell-suggestions-separator"/>
- <menuitem id="context-openlink"
- label="&openLinkCmd.label;"
- accesskey="&openLinkCmd.accesskey;"
- oncommand="gContextMenu.openLink();"/>
- <menuitem id="context-openlinkintab"
- label="&openLinkCmdInTab.label;"
- accesskey="&openLinkCmdInTab.accesskey;"
- oncommand="gContextMenu.openLinkInTab();"/>
- <menuseparator id="context-sep-open"/>
- <menuitem id="context-bookmarklink"
- label="&bookmarkThisLinkCmd.label;"
- accesskey="&bookmarkThisLinkCmd.accesskey;"
- oncommand="gContextMenu.bookmarkLink();"/>
- <menuitem id="context-savelink"
- label="&saveLinkCmd.label;"
- accesskey="&saveLinkCmd.accesskey;"
- oncommand="gContextMenu.saveLink();"/>
- <menuitem id="context-sendlink"
- label="&sendLinkCmd.label;"
- accesskey="&sendLinkCmd.accesskey;"
- oncommand="gContextMenu.sendLink();"/>
- <menuitem id="context-copyemail"
- label="©EmailCmd.label;"
- accesskey="©EmailCmd.accesskey;"
- oncommand="gContextMenu.copyEmail();"/>
- <menuitem id="context-copylink"
- label="©LinkCmd.label;"
- accesskey="©LinkCmd.accesskey;"
- oncommand="goDoCommand('cmd_copyLink');"/>
- <menuseparator id="context-sep-copylink"/>
- <menuitem id="context-showimage"
- label="&showImageCmd.label;"
- accesskey="&showImageCmd.accesskey;"
- oncommand="gContextMenu.showImage();"/>
- <menuitem id="context-viewimage"
- label="&viewImageCmd.label;"
- accesskey="&viewImageCmd.accesskey;"
- oncommand="gContextMenu.viewImage(event);"
- onclick="checkForMiddleClick(this, event);"/>
- <menuitem id="context-copyimage-contents"
- label="©ImageContentsCmd.label;"
- accesskey="©ImageContentsCmd.accesskey;"
- oncommand="goDoCommand('cmd_copyImageContents');"/>
- <menuitem id="context-copyimage"
- label="©ImageCmd.label;"
- accesskey="©ImageCmd.accesskey;"
- oncommand="goDoCommand('cmd_copyImageLocation');"/>
- <menuseparator id="context-sep-copyimage"/>
- <menuitem id="context-saveimage"
- label="&saveImageCmd.label;"
- accesskey="&saveImageCmd.accesskey;"
- oncommand="gContextMenu.saveImage();"/>
- <menuitem id="context-sendimage"
- label="&sendImageCmd.label;"
- accesskey="&sendImageCmd.accesskey;"
- oncommand="gContextMenu.sendImage();"/>
- <menuitem id="context-setDesktopBackground"
- label="&setDesktopBackgroundCmd.label;"
- accesskey="&setDesktopBackgroundCmd.accesskey;"
- oncommand="gContextMenu.setDesktopBackground();"/>
- <menuitem id="context-blockimage"
- type="checkbox"
- accesskey="&blockImageCmd.accesskey;"
- oncommand="gContextMenu.toggleImageBlocking(this.getAttribute('checked') == 'true');"/>
- <menuitem id="context-back"
- label="&backCmd.label;"
- accesskey="&backCmd.accesskey;"
- chromedir="&locale.dir;"
- command="Browser:Back"/>
- <menuitem id="context-forward"
- label="&forwardCmd.label;"
- accesskey="&forwardCmd.accesskey;"
- chromedir="&locale.dir;"
- command="Browser:Forward"/>
- <menuitem id="context-reload"
- label="&reloadCmd.label;"
- accesskey="&reloadCmd.accesskey;"
- command="Browser:Reload"/>
- <menuitem id="context-stop"
- label="&stopCmd.label;"
- accesskey="&stopCmd.accesskey;"
- command="Browser:Stop"/>
- <menuseparator id="context-sep-stop"/>
- <menuitem id="context-bookmarkpage"
- label="&bookmarkPageCmd2.label;"
- accesskey="&bookmarkPageCmd2.accesskey;"
- oncommand="gContextMenu.bookmarkThisPage();"/>
- <menuitem id="context-savepage"
- label="&savePageCmd.label;"
- accesskey="&savePageCmd.accesskey2;"
- oncommand="gContextMenu.savePageAs();"/>
- <menuitem id="context-sendpage"
- label="&sendPageCmd.label;"
- accesskey="&sendPageCmd.accesskey;"
- oncommand="gContextMenu.sendPage();"/>
- <menuseparator id="context-sep-viewbgimage"/>
- <menuitem id="context-viewbgimage"
- label="&viewBGImageCmd.label;"
- accesskey="&viewBGImageCmd.accesskey;"
- oncommand="gContextMenu.viewBGImage(event);"
- onclick="checkForMiddleClick(this, event);"/>
- <menuitem id="context-undo"
- label="&undoCmd.label;"
- accesskey="&undoCmd.accesskey;"
- command="cmd_undo"/>
- <menuseparator id="context-sep-undo"/>
- <menuitem id="context-cut"
- label="&cutCmd.label;"
- accesskey="&cutCmd.accesskey;"
- command="cmd_cut"/>
- <menuitem id="context-copy"
- label="©Cmd.label;"
- accesskey="©Cmd.accesskey;"
- command="cmd_copy"/>
- <menuitem id="context-paste"
- label="&pasteCmd.label;"
- accesskey="&pasteCmd.accesskey;"
- command="cmd_paste"/>
- <menuitem id="context-delete"
- label="&deleteCmd.label;"
- accesskey="&deleteCmd.accesskey;"
- command="cmd_delete"/>
- <menuseparator id="context-sep-paste"/>
- <menuitem id="context-selectall"
- label="&selectAllCmd.label;"
- accesskey="&selectAllCmd.accesskey;"
- command="cmd_selectAll"/>
- <menuseparator id="context-sep-selectall"/>
- <menuitem id="context-keywordfield"
- label="&keywordfield.label;"
- accesskey="&keywordfield.accesskey;"
- oncommand="AddKeywordForSearchField();"/>
- <menuitem id="context-searchselect"
- accesskey="&search.accesskey;"
- oncommand="BrowserSearch.loadSearch(getBrowserSelection(), true);"/>
- <menuseparator id="frame-sep"/>
- <menu id="frame" label="&thisFrameMenu.label;" accesskey="&thisFrameMenu.accesskey;">
- <menupopup>
- <menuitem id="context-showonlythisframe"
- label="&showOnlyThisFrameCmd.label;"
- accesskey="&showOnlyThisFrameCmd.accesskey;"
- oncommand="gContextMenu.showOnlyThisFrame();"/>
- <menuitem id="context-openframe"
- label="&openFrameCmd.label;"
- accesskey="&openFrameCmd.accesskey;"
- oncommand="gContextMenu.openFrame();"/>
- <menuitem id="context-openframeintab"
- label="&openFrameCmdInTab.label;"
- accesskey="&openFrameCmdInTab.accesskey;"
- oncommand="gContextMenu.openFrameInTab();"/>
- <menuseparator/>
- <menuitem id="context-reloadframe"
- label="&reloadFrameCmd.label;"
- accesskey="&reloadFrameCmd.accesskey;"
- oncommand="gContextMenu.reloadFrame();"/>
- <menuseparator/>
- <menuitem id="context-bookmarkframe"
- label="&bookmarkThisFrameCmd.label;"
- accesskey="&bookmarkThisFrameCmd.accesskey;"
- oncommand="gContextMenu.addBookmarkForFrame();"/>
- <menuitem id="context-saveframe"
- label="&saveFrameCmd.label;"
- accesskey="&saveFrameCmd.accesskey;"
- oncommand="saveDocument(gContextMenu.target.ownerDocument);"/>
- <menuseparator/>
- <menuitem id="context-printframe"
- label="&printFrameCmd.label;"
- accesskey="&printFrameCmd.accesskey;"
- oncommand="gContextMenu.printFrame();"/>
- <menuseparator/>
- <menuitem id="context-viewframesource"
- label="&viewFrameSourceCmd.label;"
- accesskey="&viewFrameSourceCmd.accesskey;"
- oncommand="gContextMenu.viewFrameSource();"
- observes="isFrameImage"/>
- <menuitem id="context-viewframeinfo"
- label="&viewFrameInfoCmd.label;"
- accesskey="&viewFrameInfoCmd.accesskey;"
- oncommand="gContextMenu.viewFrameInfo();"/>
- </menupopup>
- </menu>
- <menuseparator id="context-sep-properties"/>
- <menuitem id="context-viewpartialsource-selection"
- label="&viewPartialSourceForSelectionCmd.label;"
- accesskey="&viewPartialSourceCmd.accesskey;"
- oncommand="gContextMenu.viewPartialSource('selection');"
- observes="isImage"/>
- <menuitem id="context-viewpartialsource-mathml"
- label="&viewPartialSourceForMathMLCmd.label;"
- accesskey="&viewPartialSourceCmd.accesskey;"
- oncommand="gContextMenu.viewPartialSource('mathml');"
- observes="isImage"/>
- <menuitem id="context-viewsource"
- label="&viewPageSourceCmd.label;"
- accesskey="&viewPageSourceCmd.accesskey;"
- oncommand="BrowserViewSourceOfDocument(gContextMenu.browser.contentDocument);"
- observes="isImage"/>
- <menuitem id="context-viewinfo"
- label="&viewPageInfoCmd.label;"
- accesskey="&viewPageInfoCmd.accesskey;"
- oncommand="gContextMenu.viewInfo();"/>
- <menuitem id="context-metadata"
- label="&metadataCmd.label;"
- accesskey="&metadataCmd.accesskey;"
- oncommand="gContextMenu.showMetadata();"/>
- <menuseparator id="spell-separator"/>
- <menuitem id="spell-check-enabled"
- label="&spellCheckEnable.label;"
- type="checkbox"
- accesskey="&spellCheckEnable.accesskey;"
- oncommand="InlineSpellCheckerUI.toggleEnabled();"/>
- <menuitem id="spell-add-dictionaries-main"
- label="&spellAddDictionaries.label;"
- accesskey="&spellAddDictionaries.accesskey;"
- oncommand="gContextMenu.addDictionaries();"/>
- <menu id="spell-dictionaries"
- label="&spellDictionaries.label;"
- accesskey="&spellDictionaries.accesskey;">
- <menupopup id="spell-dictionaries-menu">
- <menuseparator id="spell-language-separator"/>
- <menuitem id="spell-add-dictionaries"
- label="&spellAddDictionaries.label;"
- accesskey="&spellAddDictionaries.accesskey;"
- oncommand="gContextMenu.addDictionaries();"/>
- </menupopup>
- </menu>
- <menuseparator hidden="true" id="context-sep-bidi"/>
- <menuitem hidden="true" id="context-bidi-text-direction-toggle"
- label="&bidiSwitchTextDirectionItem.label;"
- accesskey="&bidiSwitchTextDirectionItem.accesskey;"
- command="cmd_switchTextDirection"/>
- <menuitem hidden="true" id="context-bidi-page-direction-toggle"
- label="&bidiSwitchPageDirectionItem.label;"
- accesskey="&bidiSwitchPageDirectionItem.accesskey;"
- oncommand="gContextMenu.switchPageDirection();"/>
- </popup>
-
- <popup id="placesContext"/>
-
- <!-- Popup for site identity information -->
- <panel id="identity-popup" position="after_start" hidden="true" noautofocus="true"
- onpopupshown="document.getElementById('identity-popup-more-info-button').focus();"
- onpopuphidden="focusAndSelectUrlBar();" norestorefocus="true"
- chromedir="&locale.dir;">
- <hbox id="identity-popup-container" align="top">
- <image id="identity-popup-icon"/>
- <vbox id="identity-popup-content-box">
- <label id="identity-popup-connectedToLabel" value="&identity.connectedTo;"/>
- <label id="identity-popup-connectedToLabel2"
- value="&identity.unverifiedsite2;"/>
- <description id="identity-popup-content-host"/>
- <label id="identity-popup-runByLabel" value="&identity.runBy;"/>
- <description id="identity-popup-content-owner"/>
- <description id="identity-popup-content-supplemental"/>
- <description id="identity-popup-content-verifier"/>
- <hbox id="identity-popup-encryption" flex="1">
- <vbox>
- <image id="identity-popup-encryption-icon"/>
- <spacer flex="1"/>
- </vbox>
- <description id="identity-popup-encryption-label" flex="1"/>
- </hbox>
- <spacer flex="1"/>
- <!-- Footer button to open security page info -->
- <hbox>
- <spacer flex="1"/>
- <button id="identity-popup-more-info-button"
- label="&identity.moreInfoLinkText;"
- onblur="getIdentityHandler().hideIdentityPopup();"
- oncommand="getIdentityHandler().handleMoreInfoClick(event);"/>
- </hbox>
- </vbox>
- </hbox>
- </panel>
-
- <tooltip id="urlTooltip">
- <label crop="center" flex="1"/>
- </tooltip>
- </popupset>
-
- <!-- bookmarks toolbar tooltip -->
- <tooltip id="btTooltip" noautohide="true"
- onpopupshowing="return BookmarksEventHandler.fillInBTTooltip(document.tooltipNode)">
- <vbox id="btTooltipTextBox" flex="1">
- <label id="btTitleText" class="tooltip-label" />
- <label id="btUrlText" class="tooltip-label" />
- </vbox>
- </tooltip>
-
- <toolbox id="navigator-toolbox" class="toolbox-top" mode="icons"
- defaultmode="icons">
- <!-- Menu -->
- <toolbar type="menubar" id="toolbar-menubar" class="chromeclass-menubar" customizable="true"
- defaultset="menubar-items,spring,throbber-box"
- mode="icons" iconsize="small" defaulticonsize="small"
- context="toolbar-context-menu">
- <toolbaritem id="menubar-items" align="center">
-
- <menubar id="main-menubar"
- style="border:0px;padding:0px;margin:0px;-moz-appearance:none">
- <menu id="file-menu" label="&fileMenu.label;"
- accesskey="&fileMenu.accesskey;">
- <menupopup id="menu_FilePopup" onpopupshowing="getContentAreaFrameCount();">
- <menuitem id="menu_newNavigator"
- label="&newNavigatorCmd.label;"
- accesskey="&newNavigatorCmd.accesskey;"
- key="key_newNavigator"
- command="cmd_newNavigator"/>
- <menuitem id="menu_newNavigatorTab"
- label="&tabCmd.label;"
- command="cmd_newNavigatorTab"
- key="key_newNavigatorTab"
- accesskey="&tabCmd.accesskey;"/>
- <menuitem id="menu_openLocation"
- label="&openLocationCmd.label;"
- command="Browser:OpenLocation"
- key="focusURLBar"
- accesskey="&openLocationCmd.accesskey;"/>
- <menuitem id="menu_openFile"
- label="&openFileCmd.label;"
- command="Browser:OpenFile"
- key="openFileKb"
- accesskey="&openFileCmd.accesskey;"/>
- <menuitem id="menu_closeWindow" hidden="true" command="cmd_closeWindow" key="key_closeWindow" label="&closeWindow.label;" accesskey="&closeWindow.accesskey;"/>
- <menuitem id="menu_close" label="&closeCmd.label;" key="key_close" accesskey="&closeCmd.accesskey;" command="cmd_close"/>
- <menuseparator/>
- <menuitem label="&savePageCmd.label;" accesskey="&savePageCmd.accesskey;" key="key_savePage" command="Browser:SavePage"/>
- <menuitem id="menu_saveFrame" label="&saveFrameCmd.label;" accesskey="&saveFrameCmd.accesskey;" command="Browser:SaveFrame" hidden="true"/>
- <menuitem id="menu_sendLink" label="&sendPageCmd.label;" accesskey="&sendPageCmd.accesskey;" command="Browser:SendLink"/>
- <menuseparator/>
- <menuitem label="&printSetupCmd.label;" accesskey="&printSetupCmd.accesskey;" command="cmd_pageSetup"/>
- <menuitem label="&printPreviewCmd.label;" accesskey="&printPreviewCmd.accesskey;" command="cmd_printPreview"/>
- <menuitem label="&printCmd.label;" accesskey="&printCmd.accesskey;" key="printKb" command="cmd_print"/>
- <menuseparator/>
- <menuitem label="&import.label;" accesskey="&import.accesskey;" oncommand="BrowserImport();"/>
- <menuseparator/>
- <menuitem id="goOfflineMenuitem"
- label="&goOfflineCmd.label;" accesskey="&goOfflineCmd.accesskey;"
- type="checkbox" oncommand="BrowserOffline.toggleOfflineStatus();"/>
- <menuitem id="menu_FileQuitItem"
- label="&quitApplicationCmdWin.label;"
- accesskey="&quitApplicationCmdWin.accesskey;"
- command="cmd_quitApplication"/>
- </menupopup>
- </menu>
-
- <menu id="edit-menu" label="&editMenu.label;"
- accesskey="&editMenu.accesskey;">
- <menupopup id="menu_EditPopup"
- onpopupshowing="updateEditUIVisibility()"
- onpopuphidden="updateEditUIVisibility()">
- <menuitem label="&undoCmd.label;"
- key="key_undo"
- accesskey="&undoCmd.accesskey;"
- command="cmd_undo"/>
- <menuitem label="&redoCmd.label;"
- key="key_redo"
- accesskey="&redoCmd.accesskey;"
- command="cmd_redo"/>
- <menuseparator/>
- <menuitem label="&cutCmd.label;"
- key="key_cut"
- accesskey="&cutCmd.accesskey;"
- command="cmd_cut"/>
- <menuitem label="©Cmd.label;"
- key="key_copy"
- accesskey="©Cmd.accesskey;"
- command="cmd_copy"/>
- <menuitem label="&pasteCmd.label;"
- key="key_paste"
- accesskey="&pasteCmd.accesskey;"
- command="cmd_paste"/>
- <menuitem label="&deleteCmd.label;"
- key="key_delete"
- accesskey="&deleteCmd.accesskey;"
- command="cmd_delete"/>
- <menuseparator/>
- <menuitem id="menu_selectAll"
- label="&selectAllCmd.label;"
- key="key_selectAll"
- accesskey="&selectAllCmd.accesskey;"
- command="cmd_selectAll"/>
- <menuseparator/>
- <menuitem id="menu_find" label="&findOnCmd.label;" accesskey="&findOnCmd.accesskey;" key="key_find" command="cmd_find"/>
- <menuitem label="&findAgainCmd.label;" accesskey="&findAgainCmd.accesskey;" key="key_findAgain" command="cmd_findAgain"/>
- <menuseparator hidden="true" id="textfieldDirection-separator"/>
- <menuitem id="textfieldDirection-swap"
- command="cmd_switchTextDirection"
- key="key_switchTextDirection"
- label="&bidiSwitchTextDirectionItem.label;"
- accesskey="&bidiSwitchTextDirectionItem.accesskey;"
- hidden="true"/>
- </menupopup>
- </menu>
-
- <menu id="view-menu" label="&viewMenu.label;" accesskey="&viewMenu.accesskey;">
- <menupopup id="menu_viewPopup">
- <menu id="viewToolbarsMenu" label="&viewToolbarsMenu.label;" accesskey="&viewToolbarsMenu.accesskey;"
- onpopupshowing="onViewToolbarsPopupShowing(event);">
- <menupopup>
- <menuseparator/>
- <menuitem label="&viewCustomizeToolbar.label;" accesskey="&viewCustomizeToolbar.accesskey;"
- command="cmd_CustomizeToolbars"/>
- </menupopup>
- </menu>
- <menuitem id="toggle_taskbar" label="&taskbarCmd.label;" accesskey="&taskbarCmd.accesskey;" type="checkbox" command="cmd_toggleTaskbar" checked="true" />
- <menu id="viewSidebarMenuMenu"
- label="&viewSidebarMenu.label;"
- accesskey="&viewSidebarMenu.accesskey;">
- <menupopup id="viewSidebarMenu">
- <menuitem key="viewBookmarksSidebarKb" observes="viewBookmarksSidebar" accesskey="&bookmarksSidebarCmd.accesskey;"/>
- <menuitem key="key_gotoHistory" observes="viewHistorySidebar" label="&historyButton.label;" accesskey="&historySidebarCmd.accesskey;"/>
- </menupopup>
- </menu>
- <menuseparator/>
- <menuitem label="&stopCmd.label;"
- accesskey="&stopCmd.accesskey;"
- command="Browser:Stop"
- key="key_stop"/>
- <menuitem label="&reloadCmd.label;" accesskey="&reloadCmd.accesskey;" command="Browser:Reload" key="key_reload"/>
- <menuseparator/>
- <menu id="viewFullZoomMenu" label="&fullZoom.label;" accesskey="&fullZoom.accesskey;" onpopupshowing="FullZoom.updateMenu();">
- <menupopup>
- <menuitem key="key_fullZoomEnlarge" label="&fullZoomEnlargeCmd.label;" accesskey="&fullZoomEnlargeCmd.accesskey;"
- command="cmd_fullZoomEnlarge"/>
- <menuitem key="key_fullZoomReduce" label="&fullZoomReduceCmd.label;" accesskey="&fullZoomReduceCmd.accesskey;"
- command="cmd_fullZoomReduce"/>
- <menuseparator/>
- <menuitem key="key_fullZoomReset" label="&fullZoomResetCmd.label;" accesskey="&fullZoomResetCmd.accesskey;"
- command="cmd_fullZoomReset"/>
- <menuseparator/>
- <menuitem id="toggle_zoom" label="&fullZoomToggleCmd.label;" accesskey="&fullZoomToggleCmd.accesskey;"
- type="checkbox" command="cmd_fullZoomToggle" checked="false"/>
- </menupopup>
- </menu>
- <menu id="pageStyleMenu" label="&pageStyleMenu.label;" accesskey="&pageStyleMenu.accesskey;" observes="isImage">
- <menupopup onpopupshowing="stylesheetFillPopup(this);"
- oncommand="stylesheetSwitchAll(window.content, event.target.getAttribute('data')); setStyleDisabled(false);">
- <menuitem label="&pageStyleNoStyle.label;" accesskey="&pageStyleNoStyle.accesskey;"
- oncommand="setStyleDisabled(true); event.stopPropagation();" type="radio"/>
- <menuitem label="&pageStylePersistentOnly.label;" accesskey="&pageStylePersistentOnly.accesskey;" type="radio" checked="true"/>
- <menuseparator/>
- </menupopup>
- </menu>
- <menu id="charsetMenu"
- label="&charsetMenu.label;"
- accesskey="&charsetMenu.accesskey;"
- datasources="rdf:charset-menu"
- ref="NC:BrowserCharsetMenuRoot"
- oncommand="MultiplexHandler(event)"
- onpopupshowing="CreateMenu('browser');UpdateMenus(event)"
- onpopupshown="CreateMenu('more-menu');"
- observes="isImage">
- <template>
- <rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
- <menupopup>
- <menuseparator uri="..." />
- </menupopup>
- </rule>
- <rule>
- <menupopup>
- <menuitem type="radio" name="charsetGroup" checked="rdf:http://home.netscape.com/NC-rdf#Checked" uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
- </menupopup>
- </rule>
- </template>
-
- <menupopup>
- <menu label="&charsetMenuAutodet.label;" accesskey="&charsetMenuAutodet.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserAutodetMenuRoot">
- <template>
- <rule rdf:type="http://home.netscape.com/NC-rdf#CharsetDetector">
- <menupopup>
- <menuitem type="radio" name="detectorGroup" checked="rdf:http://home.netscape.com/NC-rdf#Checked" uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
- </menupopup>
- </rule>
- </template>
- <menupopup>
- </menupopup>
- </menu>
- <menu label="&charsetMenuMore.label;" accesskey="&charsetMenuMore.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMoreCharsetMenuRoot">
- <template>
- <rule>
- <menupopup>
- <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
- </menupopup>
- </rule>
- </template>
- <menupopup>
- <menu label="&charsetMenuMore1.label;" accesskey="&charsetMenuMore1.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore1CharsetMenuRoot">
- <template>
- <rule>
- <menupopup>
- <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
- </menupopup>
- </rule>
- </template>
- <menupopup>
- </menupopup>
- </menu>
- <menu label="&charsetMenuMore2.label;" accesskey="&charsetMenuMore2.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore2CharsetMenuRoot">
- <template>
- <rule>
- <menupopup>
- <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
- </menupopup>
- </rule>
- </template>
- <menupopup>
- </menupopup>
- </menu>
- <menu label="&charsetMenuMore3.label;" accesskey="&charsetMenuMore3.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore3CharsetMenuRoot">
- <template>
- <rule>
- <menupopup>
- <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
- </menupopup>
- </rule>
- </template>
- <menupopup>
- </menupopup>
- </menu>
- <menu label="&charsetMenuMore4.label;" accesskey="&charsetMenuMore4.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore4CharsetMenuRoot">
- <template>
- <rule>
- <menupopup>
- <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
- </menupopup>
- </rule>
- </template>
- <menupopup>
- </menupopup>
- </menu>
- <menu label="&charsetMenuMore5.label;" accesskey="&charsetMenuMore5.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore5CharsetMenuRoot">
- <template>
- <rule>
- <menupopup>
- <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
- </menupopup>
- </rule>
- </template>
- <menupopup>
- </menupopup>
- </menu>
- <menu label="&charsetMenuUnicode.label;" accesskey="&charsetMenuUnicode.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserUnicodeCharsetMenuRoot">
- <template>
- <rule>
- <menupopup>
- <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
- </menupopup>
- </rule>
- </template>
- <menupopup>
- </menupopup>
- </menu>
- <menuseparator />
- </menupopup>
- </menu>
- <menuitem name="charsetCustomize" accesskey="&charsetCustomize.accesskey;" label="&charsetCustomize.label;" oncommand="window.openDialog('chrome://global/content/customizeCharset.xul','PrefWindow', 'chrome,modal=yes,resizable=yes', 'browser')"/>
- </menupopup>
- </menu>
- <menuseparator/>
- <menuitem accesskey="&pageSourceCmd.accesskey;" label="&pageSourceCmd.label;" key="key_viewSource" command="View:PageSource"/>
- <menuitem accesskey="&fullScreenCmd.accesskey;"
- label="&fullScreenCmd.label;" key="key_fullScreen"
- id="fullScreenItem"
- type="checkbox"
- command="View:FullScreen"/>
- <menuseparator hidden="true" id="documentDirection-separator"/>
- <menuitem hidden="true" id="documentDirection-swap"
- label="&bidiSwitchPageDirectionItem.label;"
- accesskey="&bidiSwitchPageDirectionItem.accesskey;"
- oncommand="SwitchDocumentDirection(window.content)"/>
- </menupopup>
- </menu>
-
- <menu id="history-menu"
- oncommand="var node = event.target.node; if (node) { PlacesUIUtils.markPageAsTyped(node.uri); openUILink(node.uri, event, false, true); }"
- onclick="checkForMiddleClick(this, event);"
- label="&historyMenu.label;"
- accesskey="&historyMenu.accesskey;">
- <menupopup id="goPopup"
- type="places"
- onpopupshowing="HistoryMenu.onPopupShowing(this);"
- place="place:type=0&sort=4&maxResults=10">
- <menuitem id="historyMenuBack"
- label="&backCmd.label;"
- key="goBackKb"
- chromedir="&locale.dir;"
- oncommand="BrowserBack(event, true)"
- onclick="checkForMiddleClick(this, event);">
- <observes element="Browser:Back" attribute="disabled" />
- </menuitem>
- <menuitem id="historyMenuForward"
- label="&forwardCmd.label;"
- key="goForwardKb"
- chromedir="&locale.dir;"
- oncommand="BrowserForward(event, true)"
- onclick="checkForMiddleClick(this, event);">
- <observes element="Browser:Forward" attribute="disabled" />
- </menuitem>
-
- <menuitem id="historyMenuHome"
- label="&historyHomeCmd.label;"
- oncommand="BrowserGoHome(event);"
- onclick="checkForMiddleClick(this, event);"
- key="goHome"/>
- <menuitem label="&showAllHistoryCmd2.label;"
- key="showAllHistoryKb"
- command="Browser:ShowAllHistory"/>
- <menuseparator id="startHistorySeparator" builder="start"/>
- <menuseparator id="endHistorySeparator" builder="end"/>
- <menu id="historyUndoMenu" label="&historyUndoMenu.label;" disabled="true">
- <menupopup id="historyUndoPopup" onpopupshowing="HistoryMenu.populateUndoSubmenu();"/>
- </menu>
- </menupopup>
- </menu>
-
- <menu id="bookmarksMenu"
- label="&bookmarksMenu.label;" accesskey="&bookmarksMenu.accesskey;"
- ondragenter="PlacesMenuDNDController.onBookmarksMenuDragEnter(event);"
- ondragdrop="nsDragAndDrop.drop(event, BookmarksMenuDropHandler);"
- ondragover="nsDragAndDrop.dragOver(event, BookmarksMenuDropHandler);">
- <menupopup id="bookmarksMenuPopup"
- type="places"
- place="place:folder=BOOKMARKS_MENU&expandQueries=1"
- context="placesContext"
- openInTabs="children"
- oncommand="BookmarksEventHandler.onCommand(event);"
- onclick="BookmarksEventHandler.onClick(event);"
- onpopupshowing="BookmarksEventHandler.onPopupShowing(event);">
- <menuitem label="&bookmarkThisPageCmd.label;"
- command="Browser:AddBookmarkAs" key="addBookmarkAsKb"/>
- <menuitem id="subscribeToPageMenuitem"
- label="&subscribeToPageMenuitem.label;"
- oncommand="return FeedHandler.subscribeToFeed(null, event);"
- onclick="checkForMiddleClick(this, event);"
- disabled="true"/>
- <menu id="subscribeToPageMenupopup"
- label="&subscribeToPageMenupopup.label;"
- hidden="true">
- <menupopup id="subscribeToPageSubmenuMenupopup"
- onpopupshowing="return FeedHandler.buildFeedList(event.target);"
- oncommand="return FeedHandler.subscribeToFeed(null, event);"
- onclick="checkForMiddleClick(this, event);"/>
- </menu>
- <menuitem label="&addCurPagesCmd.label;"
- command="Browser:BookmarkAllTabs" key="bookmarkAllTabsKb"/>
- <menuitem id="bookmarksShowAll"
- label="&organizeBookmarks.label;"
- command="Browser:ShowAllBookmarks"
- key="manBookmarkKb"/>
- <menuseparator id="organizeBookmarksSeparator"/>
- <menu id="bookmarksToolbarFolderMenu"
- class="menu-iconic bookmark-item"
- container="true">
- <menupopup id="bookmarksToolbarFolderPopup"
- type="places"
- context="placesContext"
- onpopupshowing="BookmarksEventHandler.onPopupShowing(event);"/>
- </menu>
- <menuseparator builder="start"/>
- </menupopup>
- </menu>
-
- <menu id="tools-menu" label="&toolsMenu.label;" accesskey="&toolsMenu.accesskey;">
- <menupopup id="menu_ToolsPopup">
- <menuitem label="&search.label;" accesskey="&search.accesskey;"
- key="key_search" command="Tools:Search"/>
- <menuseparator id="browserToolsSeparator"/>
- <menuitem id="menu_openDownloads" label="&downloads.label;"
- accesskey="&downloads.accesskey;"
- key="key_openDownloads" command="Tools:Downloads"/>
- <menuitem id="menu_openAddons" label="&addons.label;"
- accesskey="&addons.accesskey;" command="Tools:Addons"/>
- <menuseparator id="devToolsSeparator"/>
- <menuitem id="javascriptConsole"
- label="&errorConsoleCmd.label;" accesskey="&errorConsoleCmd.accesskey;"
- key="key_errorConsole" oncommand="toJavaScriptConsole();"/>
- <menuitem accesskey="&pageInfoCmd.accesskey;" label="&pageInfoCmd.label;"
- command="View:PageInfo"/>
- <menuseparator id="sanitizeSeparator"/>
- <menuitem id="sanitizeItem"
- accesskey="&clearPrivateDataCmd.accesskey;"
- label="&clearPrivateDataCmd.label;"
- key="key_sanitize" command="Tools:Sanitize"/>
- <menuseparator id="prefSep"/>
- <menuitem id="menu_preferences"
- label="&preferencesCmd.label;"
- accesskey="&preferencesCmd.accesskey;"
- oncommand="openPreferences();"/>
- </menupopup>
- </menu>
-
- <menu id="helpMenu" />
- </menubar>
- </toolbaritem>
- </toolbar>
-
- <toolbarpalette id="BrowserToolbarPalette">
-
- <toolbaritem id="unified-back-forward-button" class="chromeclass-toolbar-additional"
- context="backForwardMenu"
- onbroadcast="document.getElementById('back-forward-dropmarker').disabled =
- document.getElementById('Browser:Back').hasAttribute('disabled') &&
- document.getElementById('Browser:Forward').hasAttribute('disabled');">
- <toolbarbutton id="back-button" class="toolbarbutton-1"
- chromedir="&locale.dir;"
- label="&backCmd.label;"
- oncommand="BrowserBack(event)"
- onclick="checkForMiddleClick(this, event);"
- tooltiptext="&backButton.tooltip;">
- <observes element="Browser:Back" attribute="disabled"/>
- </toolbarbutton>
- <toolbarbutton id="forward-button" class="toolbarbutton-1"
- chromedir="&locale.dir;"
- label="&forwardCmd.label;"
- oncommand="BrowserForward(event)"
- onclick="checkForMiddleClick(this, event);"
- tooltiptext="&forwardButton.tooltip;">
- <observes element="Browser:Forward" attribute="disabled"/>
- </toolbarbutton>
- <toolbarbutton id="back-forward-dropmarker" type="menu" chromedir="&locale.dir;"
- disabled="true" tooltiptext="&backForwardMenu.tooltip;">
- <!-- bug 415444: event.stopPropagation is here for the cloned version of
- this menupopup -->
- <menupopup context=""
- chromedir="&locale.dir;"
- position="after_start"
- onpopupshowing="return FillHistoryMenu(event.target);"
- oncommand="gotoHistoryIndex(event); event.stopPropagation();"
- onclick="checkForMiddleClick(this, event);"/>
- </toolbarbutton>
- </toolbaritem>
-
- <toolbarbutton id="reload-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
- label="&reloadCmd.label;"
- command="Browser:Reload"
- tooltiptext="&reloadButton.tooltip;"/>
-
- <toolbarbutton id="stop-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
- label="&stopCmd.label;"
- command="Browser:Stop"
- tooltiptext="&stopButton.tooltip;"/>
-
- <toolbarbutton id="home-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
- persist="class"
- label="&homeButton.label;"
- ondragover="nsDragAndDrop.dragOver(event, homeButtonObserver);"
- ondragdrop="nsDragAndDrop.drop(event, homeButtonObserver);"
- ondragexit="nsDragAndDrop.dragExit(event, homeButtonObserver);"
- onclick="BrowserGoHome(event);"/>
-
- <toolbaritem id="urlbar-container" align="center" flex="400" persist="width"
- title="&locationItem.title;" class="chromeclass-location">
- <textbox id="urlbar" flex="1"
- chromedir="&locale.dir;"
- type="autocomplete"
- autocompletesearch="history"
- autocompletepopup="PopupAutoCompleteRichResult"
- completeselectedindex="true"
- tabscrolling="true"
- showcommentcolumn="true"
- showimagecolumn="true"
- enablehistory="true"
- maxrows="6"
- newlines="stripsurroundingwhitespace"
- oninput="URLBarOnInput(event);"
- ontextentered="return handleURLBarCommand(param);"
- ontextreverted="return handleURLBarRevert();"
- pageproxystate="invalid"
- onsearchbegin="LocationBarHelpers._searchBegin();"
- onsearchcomplete="LocationBarHelpers._searchComplete();"
- onfocus="document.getElementById('identity-box').style.MozUserFocus= 'normal'"
- onblur="document.getElementById('identity-box').style.MozUserFocus = 'ignore';">
- <!-- Use onclick instead of normal popup= syntax since the popup
- code fires onmousedown, and hence eats our favicon drag events.
- We only add the identity-box button to the tab order when the location bar
- has focus, otherwise pressing F6 focuses it instead of the location bar -->
- <box id="identity-box" role="button"
- chromedir="&locale.dir;"
- onclick="getIdentityHandler().handleIdentityButtonEvent(event);"
- onkeypress="getIdentityHandler().handleIdentityButtonEvent(event);">
- <hbox align="center">
- <stack id="page-proxy-stack"
- onclick="PageProxyClickHandler(event);">
- <image id="urlbar-throbber" busy="false"/>
- <image id="page-proxy-favicon" validate="never"
- pageproxystate="invalid"
- ondraggesture="PageProxyDragGesture(event);"
- onerror="this.removeAttribute('src');"/>
- </stack>
- <label id="identity-icon-label"/>
- </hbox>
- </box>
- <hbox id="urlbar-icons">
- <button type="menu"
- style="-moz-user-focus: none"
- class="plain urlbar-icon"
- id="feed-button"
- chromedir="&locale.dir;"
- onclick="return FeedHandler.onFeedButtonClick(event);">
- <menupopup position="after_end"
- onpopupshowing="return FeedHandler.buildFeedList(this);"
- oncommand="return FeedHandler.subscribeToFeed(null, event);"
- onclick="checkForMiddleClick(this, event);"/>
- </button>
- <image id="safebrowsing-urlbar-icon" tooltiptext="&safeb.urlbaricon.tooltip;"
- level="safe"
- class="urlbar-icon"
- onclick="goDoCommand('safebrowsing-show-warning')"/>
- <image id="star-button"
- class="urlbar-icon"
- onclick="PlacesStarButton.onClick(event);"/>
- <image id="go-button" chromedir="&locale.dir;"
- class="urlbar-icon"
- tooltiptext="&goEndCap.tooltip;"
- onclick="handleURLBarCommand(event);"/>
- </hbox>
- </textbox>
- </toolbaritem>
-
- <toolbaritem id="search-container" title="&searchItem.title;"
- align="center" class="chromeclass-toolbar-additional"
- flex="100" persist="width">
- <searchbar id="searchbar" flex="1" chromedir="&locale.dir;"
- newlines="replacewithspaces"/>
- </toolbaritem>
-
- <toolbarbutton id="print-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
- label="&printButton.label;" command="cmd_print"
- tooltiptext="&printButton.tooltip;"/>
-
- <toolbaritem id="throbber-box" title="&throbberItem.title;" align="center" pack="center">
- <button id="navigator-throbber" disabled="true"/>
- </toolbaritem>
-
- <toolbaritem flex="1" id="personal-bookmarks" title="&bookmarksItem.title;">
- <hbox id="bookmarksBarContent" flex="1" type="places"
- context="placesContext" asyncinit="true"
- onclick="BookmarksEventHandler.onClick(event);"
- oncommand="BookmarksEventHandler.onCommand(event);"
- onpopupshowing="BookmarksEventHandler.onPopupShowing(event);"
- tooltip="btTooltip"/>
- </toolbaritem>
-
- <toolbarbutton id="downloads-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
- observes="Tools:Downloads"
- ondragdrop="nsDragAndDrop.drop(event, DownloadsButtonDNDObserver); event.stopPropagation()"
- ondragover="nsDragAndDrop.dragOver(event, DownloadsButtonDNDObserver); event.stopPropagation()"
- ondragenter="nsDragAndDrop.dragEnter(event, DownloadsButtonDNDObserver); event.stopPropagation()"
- ondragexit="nsDragAndDrop.dragExit(event, DownloadsButtonDNDObserver); event.stopPropagation()"
- label="&downloads.label;"
- tooltiptext="&downloads.tooltip;"/>
-
- <toolbarbutton id="history-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
- observes="viewHistorySidebar" label="&historyButton.label;"
- tooltiptext="&historyButton.tooltip;"/>
-
- <toolbarbutton id="bookmarks-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
- observes="viewBookmarksSidebar"
- tooltiptext="&bookmarksButton.tooltip;"
- ondragover="nsDragAndDrop.dragOver(event, bookmarksButtonObserver);"
- ondragdrop="nsDragAndDrop.drop(event, bookmarksButtonObserver);"
- ondragexit="nsDragAndDrop.dragExit(event, bookmarksButtonObserver);"/>
-
- <toolbarbutton id="new-tab-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
- label="&tabCmd.label;"
- command="cmd_newNavigatorTab"
- tooltiptext="&newTabButton.tooltip;"
- ondragover="nsDragAndDrop.dragOver(event, newTabButtonObserver);"
- ondragdrop="nsDragAndDrop.drop(event, newTabButtonObserver);"
- ondragexit="nsDragAndDrop.dragExit(event, newTabButtonObserver);"/>
-
- <toolbarbutton id="new-window-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
- label="&newNavigatorCmd.label;"
- command="key_newNavigator"
- tooltiptext="&newWindowButton.tooltip;"
- ondragover="nsDragAndDrop.dragOver(event, newWindowButtonObserver);"
- ondragdrop="nsDragAndDrop.drop(event, newWindowButtonObserver);"
- ondragexit="nsDragAndDrop.dragExit(event, newWindowButtonObserver);"/>
-
- <toolbarbutton id="cut-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
- label="&cutCmd.label;"
- command="cmd_cut"
- tooltiptext="&cutButton.tooltip;"/>
-
- <toolbarbutton id="copy-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
- label="©Cmd.label;"
- command="cmd_copy"
- tooltiptext="©Button.tooltip;"/>
-
- <toolbarbutton id="paste-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
- label="&pasteCmd.label;"
- command="cmd_paste"
- tooltiptext="&pasteButton.tooltip;"/>
-
- </toolbarpalette>
-
- <toolbar id="nav-bar" class="toolbar-primary chromeclass-toolbar"
- toolbarname="&navbarCmd.label;" accesskey="&navbarCmd.accesskey;"
- fullscreentoolbar="true" mode="icons" iconsize="large"
- customizable="true"
- defaultset="unified-back-forward-button,reload-button,stop-button,home-button,urlbar-container,search-container,fullscreenflex,window-controls"
- context="toolbar-context-menu">
- <hbox id="fullscreenflex" flex="1" hidden="true" fullscreencontrol="true"/>
- <hbox id="window-controls" hidden="true" fullscreencontrol="true">
- <toolbarbutton id="minimize-button" class="toolbarbutton-1"
- tooltiptext="&fullScreenMinimize.tooltip;"
- oncommand="window.minimize();"/>
-
- <toolbarbutton id="restore-button" class="toolbarbutton-1"
- tooltiptext="&fullScreenRestore.tooltip;"
- oncommand="BrowserFullScreen();"/>
-
- <toolbarbutton id="close-button" class="toolbarbutton-1"
- tooltiptext="&fullScreenClose.tooltip;"
- oncommand="BrowserTryToCloseWindow();"/>
- </hbox>
- </toolbar>
-
- <toolbarset id="customToolbars" context="toolbar-context-menu"/>
-
- <toolbar id="PersonalToolbar"
- mode="icons" iconsize="small" defaulticonsize="small"
- class="chromeclass-directories"
- context="toolbar-context-menu"
- defaultset="personal-bookmarks"
- toolbarname="&personalbarCmd.label;" accesskey="&personalbarCmd.accesskey;"
- customizable="true"/>
- </toolbox>
-
- <hbox flex="1" id="browser">
- <vbox id="sidebar-box" hidden="true" class="chromeclass-extrachrome">
- <sidebarheader align="center">
- <label id="sidebar-title" persist="value" flex="1" crop="end" control="sidebar"/>
- <image id="sidebar-throbber"/>
- <toolbarbutton class="tabs-closebutton" tooltiptext="&sidebarCloseButton.tooltip;" oncommand="toggleSidebar();"/>
- </sidebarheader>
- <browser id="sidebar" flex="1" autoscroll="false" disablehistory="true"
- style="min-width: 14em; width: 18em; max-width: 36em;"/>
- </vbox>
-
- <splitter id="sidebar-splitter" class="chromeclass-extrachrome" hidden="true"/>
- <vbox id="appcontent" flex="1">
- <tabbrowser id="content" disablehistory="true"
- flex="1" contenttooltip="aHTMLTooltip"
- contentcontextmenu="contentAreaContextMenu"
- onnewtab="BrowserOpenTab();"
- autocompletepopup="PopupAutoComplete"
- ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);"
- onclick="return contentAreaClick(event, false);"/>
- </vbox>
- </hbox>
-
- <vbox id="browser-bottombox">
- <findbar browserid="content" id="FindToolbar"/>
-
- <statusbar class="chromeclass-status" id="status-bar"
- ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);">
- <statusbarpanel id="statusbar-display" label="" flex="1"/>
- <statusbarpanel class="statusbarpanel-progress" collapsed="true" id="statusbar-progresspanel">
- <progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0"/>
- </statusbarpanel>
- <statusbarpanel id="download-monitor" class="statusbarpanel-iconic-text"
- tooltiptext="&downloadMonitor2.tooltip;" hidden="true"
- command="Tools:Downloads"/>
- <statusbarpanel id="security-button" class="statusbarpanel-iconic-text"
- ondblclick="if (event.button == 0) displaySecurityInfo();"/>
- <statusbarpanel id="page-report-button" type="menu"
- class="statusbarpanel-menu-iconic"
- tooltiptext="&pageReportIcon.tooltip;">
- <menupopup onpopupshowing="gPopupBlockerObserver.fillPopupList(event);">
- <menuitem observes="blockedPopupAllowSite"/>
- <menuitem observes="blockedPopupEditSettings"/>
- <menuitem observes="blockedPopupDontShowMessage"/>
- <menuseparator observes="blockedPopupsSeparator"/>
- </menupopup>
- </statusbarpanel>
- </statusbar>
- </vbox>
- </window>
-